class Dictionary

    def initialize(dict_file)
        @words = Hash.new
        dict_file.each_line {|line| @words[line.downcase.chomp] = true}
    end

    def check(word)
        if @words.key?(word.downcase)
            return true
        else
            return false
        end
    end
end


if __FILE__ == $0
    dict = Dictionary.new(File.new(ARGV[0]))
    ARGV.last.split.each {|word|
        unless dict.check(word) then puts word end
    }
end
